package generate.entity;

import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.Embeddable;


@Embeddable
public class JhlogPk implements Serializable {

    @Column(name = "C_XFBS")
    private String cXfbs;

    @Column(name = "C_TBLX")
    private String cTblx;

    @Column(name = "N_SJJD")
    private Integer nSjjd;

    @Column(name = "C_TIME")
    private String cTime;




    public JhlogPk() {
    }


    public JhlogPk(String cXfbs, String cTblx, Integer nSjjd, String cTime) {
        this.cXfbs = cXfbs;
        this.cTblx = cTblx;
        this.nSjjd = nSjjd;
        this.cTime = cTime;
    }

    public String getcXfbs() {
        return cXfbs;
    }

    public void setcXfbs(String cXfbs) {
        this.cXfbs = cXfbs;
    }

    public String getcTblx() {
        return cTblx;
    }

    public void setcTblx(String cTblx) {
        this.cTblx = cTblx;
    }

    public Integer getnSjjd() {
        return nSjjd;
    }

    public void setnSjjd(Integer nSjjd) {
        this.nSjjd = nSjjd;
    }


    public String getcTime() {
        return cTime;
    }

    public void setcTime(String cTime) {
        this.cTime = cTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JhlogPk jhlogPk = (JhlogPk) o;
        return getcXfbs().equals(jhlogPk.getcXfbs()) && getcTblx().equals(jhlogPk.getcTblx()) && getnSjjd().equals(jhlogPk.getnSjjd()) && getcTime().equals(jhlogPk.getcTime());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getcXfbs(), getcTblx(), getnSjjd(), getcTime());
    }
}
